package com.example.redisDemo.jediscode;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

/**
 * @auther hewenhui
 * @see <a href="hetp://www.codingmaster.com> java </a>
 */
public class pingtest {
    public static void main(String[] args) {
        JedisPool jedisPool = new JedisPool("tcp://127.0.0.1:8888");
        try (Jedis jedis = jedisPool.getResource()) {
            String ping = jedis.ping();
            System.out.println(ping);
        }

    }
}
